# -*- coding: utf8 -*-

import os
from collections import namedtuple

SEGMENTS_COUNT = 1001
EXON_PERCENT_MATCH_SCORE = 0.8

DATA_PATH = '/home/tim/docs/spb-au-ras/semester_work/2/code/homo_separated_test/'
ALIGN_RESULTS_FILENAME = os.path.join(DATA_PATH, 'align_result.out')
STRUCTURE_FILENAME = os.path.join(DATA_PATH, 'homo_h15_struct.tsv')
SCAFFOLDS_FILENAME = os.path.join(DATA_PATH, 'homo_test_data2.fa')
CHROMOSOME_FILENAME = os.path.join(DATA_PATH, 'homo_h15.fa')

ALIGN_DUMP_FILENAME = os.path.join(DATA_PATH, 'align_result.dump')
EXON_ALIGN_DUMP_FILENAME = os.path.join(DATA_PATH, 'exons_align.dump')
EXONS_DUMP_FILENAME = os.path.join(DATA_PATH, 'exons_info.dump')
SEGMENT_LENGTH_DUMP_FILENAME = os.path.join(DATA_PATH, 'segment_length.dump')

ExonInfo = namedtuple('ExonInfo', ['length', 'start', 'position_in_gene'])
AlignDatabaseLine = namedtuple('AlignDatabaseLine', ['segment_id', 'start', 'end', 'strand'])
